package ipt.dao.F1;

import java.io.File;
import java.sql.SQLException;

public class ConnectionFactoryTxt {

	private static final String FILE_PATH = "data";
	private static final String FILE_NAME = "/Alumnos.txt";
	private static ConnectionFactoryTxt connectionFactoryTxt = null;

	private ConnectionFactoryTxt() {
		super();
	}

	public File getConnection() throws SQLException {
		File flE = new File(FILE_PATH + FILE_NAME);
		return flE;
	}

	public static ConnectionFactoryTxt getInstance() {
		if (connectionFactoryTxt == null) {
			connectionFactoryTxt = new ConnectionFactoryTxt();
		}
		return connectionFactoryTxt;
	}
}
